/**
 * Created on May 16, 2007
 */
package jvs.vfs.tools;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;

/**
 * @author qiangli
 * 
 */
public class StatusBar extends JComponent {

	private static final long serialVersionUID = 1L;

	private static StatusBar bar = new StatusBar();

	private JLabel status;

	public StatusBar() {
		setLayout(new BorderLayout());
		Border border = BorderFactory.createLoweredBevelBorder();
		setBorder(new EtchedBorder());
		setBorder(border);
		status = new JLabel(" ");
		add(status, BorderLayout.CENTER);
	}

	public static StatusBar getBar() {
		return bar;
	}

	public void show(String s) {
		status.setText(s);
	}
}